﻿@model BattleThis.Core.Field
@using BattleThis.Helpers;
           
<div class="gameField" id="@Model.Position.ToShortString().ToLower()">

 @if( this.HasUnit() )
 { 
     @Html.DisplayFor( model=> Model.Unit,"ShortUnitInfo")
 }

 <a href="@Url.Command(this.Model)" type="unit">
 
    <img class="fieldSelection" alt="Selection" src="@Url.SrcFor("Border")" />

    @Html.OverlayFor( x => x )

    @if( this.HasUnit())
    {
        <img src="@Url.SrcFor( this.Model.Unit )" alt="@this.Model.Unit.ToString()" class="unit" />
    }

    <img  src="@Url.SrcFor( "Empty" )" alt="@Model.Position.ToShortString()" class="@this.Model.LandScape.ToString().ToLower()" />
</a>
   
</div>
